package com.tensquare.user.server;

import com.tensquare.user.dao.UserDao;
import com.tensquare.user.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author wz
 * @company 公司
 * @create 2020-02-10 16:23
 */
@Service
public class UserServer {
    @Autowired
    private UserDao userDao;

    //根据id查询用户
    public User selectById(String userId){
        User user = userDao.selectById(userId);
        return user;
    }
}
